<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
欢迎！

<script src="jquery-2.1.4.js"></script>
<script>
        $.ajax({
            url:"/demo1/hello",
            type:"post",
            dataType:"json",
            success: function (data) {
                console.log(data);
            },
            error: function (a,b,c,d,e,f) {
                console.log(a);
                console.log(b);
                console.log(c);
                console.log(d);
                console.log(e);
                console.log(f);
            },
        })

        $.ajax({
            url:"http://127.0.0.1:8020/demo2/hello2",
            type:"post",
            dataType:"json",
            success: function (data) {
                console.log(data);
            },
            error: function (a,b,c,d,e,f) {
                console.log(a);
                console.log(b);
                console.log(c);
                console.log(d);
                console.log(e);
                console.log(f);
            },
        })
</script>
</body>
</html>